import axiosInst from './axios';

export const getMenu = (param) => {
	return axiosInst.request({
		url: '/permission/getMenu',
		data: param || {}
	});
}

export const getTblData = (param) => {
	return axiosInst.request({
		url: '/permission/getTblData',
		data: param || {}
	});
}

export const getOrders = (param) => {
	return axiosInst.request({
		url: '/permission/getOrders',
		data: param || {}
	});
}

export const getLineData = (param) => {
	return axiosInst.request({
		url: '/permission/getLineData',
		data: param || {}
	});
}

export const getBarData = (param) => {
	return axiosInst.request({
		url: '/permission/getBarData',
		data: param || {}
	});
}

export const getPieData = (param) => {
	return axiosInst.request({
		url: '/permission/getPieData',
		data: param || {}
	});
}

export const getToken = (param) => {
	return axiosInst.request({
		url: '/permission/getToken',
		data: param || {}
	});
}

export const getUserList = (param) => {
	return axiosInst.request({
		url: '/user/getUserList',
		method: 'get',
		data: param || {}
	});
}

export const delUser = param => {
	return axiosInst.request({
		url: '/user/delete',
		method: 'post',
		data: param || {}
	});
}